Skip to main content

Setting Up Inery Contract Development Environment

The Inery Contract Development Toolkit (CDT) allows you to build and deploy value contracts for the Inery DLS. Follow these steps to install and set up Inery CDT on your Linux (x86_64) system.

Prerequisites

This guide provides installation instructions for Debian-based systems (like Ubuntu).

Quick Installation

If you prefer a quick installation, you can use the following script to install Inery CDT:

Enter the following command in your terminal
sudo apt install libncurses5 && \
git clone https://github.com/inery-blockchain/inery.cdt.git && \
echo "export PATH=\"\$PATH:$(pwd)/inery.cdt/bin\"" >> ~/.bashrc && \
source ~/.bashrc && \
inery-cpp --version
Excpected Output
inery-cpp version 1.7.0

Step 1: Install Required Dependencies

Before installing Inery CDT, you need to make sure all required dependencies are installed.

Install libncurses5
sudo apt install libncurses5

Step 2: Clone the Inery CDT Repository

To get the latest version of Inery CDT, clone the repository from GitHub:

Clone Inery CDT Repository
git clone https://github.com/inery-blockchain/inery.cdt.git

To run Inery CDT binaries from any directory, you need to add the bin directory to your system’s PATH.

Add Inery CDT to PATH
echo "export PATH=\"\$PATH:$(pwd)/inery.cdt/bin\"" >> ~/.bashrc

To apply the changes immediately, run:

Apply Changes to .bashrc
source ~/.bashrc

Step 3: Verify Installation

To confirm that Inery CDT has been installed successfully, check the version of inery-cpp.

Check Inery CDT Version

inery-cpp --version

This command should return the current version of Inery CDT, indicating that the setup was successful.